#pragma once

#include <stdio.h>
#include "globals.h"

/* TCP includes */
#include <winsock.h>

void setupNetwork();
void cleanupNetwork();

// http://www.frostbytes.com/~jimf/papers/sockets/sockets.html
int read_data(int s,     /* connected socket */
			  char *buf, /* pointer to the buffer */
			  int n      /* number of characters (bytes) we want */
			  );

// http://www.frostbytes.com/~jimf/papers/sockets/sockets.html
int call_socket(char *hostname, unsigned short portnum);

void readFrameFromNetwork(char* c, int w, int h);

// Command server to recalibrate - just sending any string will do
void recalibrateVision(void);